import request from '@/utils/request'

// 查询实时数据采集（大）列表
export function listRealtimeGatherData(query) {
  return request({
    url: '/swla2/realtimeGatherData/list',
    method: 'get',
    params: query
  })
}

export function getByTerminalId(query) {
  return request({
    url: '/swla2/realtimeGatherData/getByTerminalId',
    method: 'get',
    params: query
  })
}

// 查询实时数据采集（大）详细
export function getRealtimeGatherData(tenantId) {
  return request({
    url: '/swla2/realtimeGatherData/' + tenantId,
    method: 'get'
  })
}

// 新增实时数据采集（大）
export function addRealtimeGatherData(data) {
  return request({
    url: '/swla2/realtimeGatherData',
    method: 'post',
    data: data
  })
}

// 修改实时数据采集（大）
export function updateRealtimeGatherData(data) {
  return request({
    url: '/swla2/realtimeGatherData',
    method: 'put',
    data: data
  })
}

// 删除实时数据采集（大）
export function delRealtimeGatherData(tenantId) {
  return request({
    url: '/swla2/realtimeGatherData/' + tenantId,
    method: 'delete'
  })
}
